W13. Linear Differential Systems

Author

Salman Ahmadi-Asl

Published

April 17, 2026

1. Theory

1.1 Ordinary Differential Equations and Dynamic Systems

An ordinary differential equation (ODE) is an equation involving an unknown function of a single independent variable together with one or more of its derivatives. If the unknown is , then examples include:

The order of an ODE is the highest derivative appearing in it. The equation is linear if the unknown function and its derivatives appear only to the first power, are not multiplied together, and are not placed inside nonlinear functions such as or .

ODEs are the mathematical language of change. Population growth, cooling, radioactive decay, mechanical vibration, electrical circuits, and chemical reactions are all modeled by differential equations. In each case, the rate of change of the current state determines the future evolution of the system.

A continuous-time dynamic system has the form

where is the state vector. The state contains enough information to determine the future of the system once the initial condition is known.

1.2 Linear Systems and Matrix Form

Many important models involve several dependent variables, so we study systems of first-order ODEs:

In compact form this becomes

where is a constant matrix.

This matrix formulation is powerful because it lets us use the entire machinery of linear algebra: eigenvalues, eigenvectors, diagonalization, matrix exponentials, and invariant subspaces. The long-term behavior of the system is encoded in the spectrum of .

1.3 Solving by Eigenvalues and Diagonalization

To solve

we look for solutions of the form

where is a constant vector and is a scalar. Substituting into the equation gives

Thus solving the ODE reduces to solving the eigenvalue problem for .

If has linearly independent eigenvectors with eigenvalues , then the general solution is

Equivalently, if is diagonalizable,

where contains eigenvectors as its columns and , then with the change of variables we obtain

This system is completely decoupled:

so each component is solved by a scalar exponential:

Diagonalization therefore turns a coupled linear system into independent first-order ODEs.

1.4 Matrix Exponential

The most general and elegant solution formula uses the matrix exponential:

For every square matrix , the solution of the initial value problem

is

The matrix exponential behaves like the scalar exponential in all the ways we need:

In particular, is always invertible and never singular.

If is diagonalizable, then

and since is diagonal,

This gives a practical way to compute using diagonalization.

1.5 Higher-Order ODEs as First-Order Systems

A higher-order linear ODE can always be rewritten as a first-order system. For a second-order equation

define

Then

or in matrix form

The same idea works for any order. For

set

Then

So higher-order equations can be solved with the same matrix methods developed for first-order systems.

1.6 Linearization Around an Equilibrium

Many physical systems are nonlinear:

An equilibrium point is a constant state such that

Near an equilibrium, a nonlinear system can be approximated by a linear one using the first-order Taylor expansion. If , then

where is the Jacobian matrix of partial derivatives evaluated at the equilibrium.

If an input is also present, then linearization near gives

with

This is why linear systems are so important: they describe the local behavior of nonlinear systems near equilibrium.

1.7 Stability and the Real Parts of Eigenvalues

For the linear system

the behavior of solutions as is determined by the eigenvalues of . If , then

Its magnitude is

Therefore, only the real part of the eigenvalue controls growth or decay:

  • If for all , then every mode decays exponentially and the equilibrium is asymptotically stable.
  • If at least one eigenvalue has , then some mode grows exponentially and the equilibrium is unstable.
  • If all eigenvalues satisfy and the eigenvalues on the imaginary axis are simple (equivalently, no growing Jordan blocks appear), then solutions remain bounded and the equilibrium is neutrally stable.

Typical geometric behaviors in the phase plane are:

  • Sink / stable node: both eigenvalues real and negative.
  • Source / unstable node: both eigenvalues real and positive.
  • Saddle: eigenvalues of opposite signs.
  • Spiral sink: complex conjugate eigenvalues with negative real part.
  • Spiral source: complex conjugate eigenvalues with positive real part.
  • Center: purely imaginary eigenvalues in the simple case.
1.8 The Trace-Determinant Test

For

the characteristic polynomial is

where

For a system, asymptotic stability is easy to test:

The discriminant

distinguishes real eigenvalues from complex ones:

  • : two distinct real eigenvalues.
  • : repeated real eigenvalue.
  • : complex conjugate pair.

Combined with the signs of and , this gives the full phase-plane classification.


2. Definitions

  • Ordinary differential equation (ODE): An equation involving an unknown function of one independent variable and its derivatives.
  • Order of an ODE: The highest derivative appearing in the equation.
  • Linear ODE: An ODE in which the unknown function and its derivatives appear linearly, with coefficients depending only on the independent variable.
  • Dynamic system: A rule describing how a state vector changes over time, typically written as .
  • State vector: The vector of variables that completely describes the system at a given time.
  • Homogeneous linear system: A system of the form with no forcing term.
  • Equilibrium point: A constant state such that .
  • Diagonalizable matrix: A matrix for which there exists an invertible matrix and diagonal matrix such that .
  • Matrix exponential: The matrix-valued series .
  • Linearization: The first-order Taylor approximation of a nonlinear system near an equilibrium or operating point.
  • Jacobian matrix: The matrix of first partial derivatives of a vector-valued function.
  • Asymptotic stability: Every solution starting near the equilibrium converges to it as .
  • Neutral (marginal) stability: Nearby solutions remain bounded for all future time but do not necessarily converge to the equilibrium.
  • Unstable equilibrium: An equilibrium for which some nearby solutions move away from it.
  • Trace: For a square matrix , the sum of its diagonal entries, denoted .
  • Phase plane: The plane whose coordinates are the state variables in a two-dimensional dynamical system; trajectories in this plane visualize the system’s behavior.

3. Formulas

  • Scalar exponential-growth/decay model: .
  • Linear system in matrix form: .
  • Eigenvector trial solution: with .
  • General solution for diagonalizable : .
  • Diagonalization: .
  • Decoupled system after change of variables: gives .
  • Matrix exponential: .
  • Solution of the initial value problem: .
  • Matrix exponential of a diagonalizable matrix: .
  • Matrix exponential of a diagonal matrix: If , then .
  • Second-order to first-order conversion: .
  • Linearization near equilibrium: when and .
  • Complex exponential magnitude: If , then .
  • Characteristic polynomial of a matrix: .
  • Trace and determinant: For , and .
  • asymptotic stability test: and .
  • Discriminant for phase-plane classification: .

4. Practice

4.1. Solve a System with Initial Conditions (Lab 10, Task 1)

Solve

Click to see the solution

Key Concept: Once eigenvalues and eigenvectors are found, the initial condition determines the coefficients uniquely.

Write the system as

Let

The characteristic polynomial is

Thus

so

For :

so , and we may take

For :

so , and we may take

Therefore

Use the initial condition:

This gives

From the second equation, . Substituting into the first gives , so

Hence

and

Answer: and .

4.2. Convert a Damped Second-Order ODE and Decide Stability (Lab 10, Task 2)

Convert

to a first-order system and determine its stability.

Click to see the solution

Key Concept: Converting to first-order gives a matrix whose eigenvalues immediately reveal stability.

Let

Then

In matrix form,

The characteristic polynomial is

Solve:

Both eigenvalues have real part , so the equilibrium is asymptotically stable. Geometrically, trajectories spiral toward the origin.

Answer: The associated first-order system is , and it is asymptotically stable because .

4.3. Find All Parameters That Make a System Asymptotically Stable (Lab 10, Task 3)

Find all real values of such that

is asymptotically stable.

Click to see the solution

Key Concept: For a system, asymptotic stability is equivalent to negative trace and positive determinant.

Let

Compute the trace:

Compute the determinant:

Since both conditions

hold for every real , the system is asymptotically stable for all .

If desired, we can also see this from the characteristic equation:

Its roots always have negative real part because the sum is and the product is .

Answer: The system is asymptotically stable for all real values of .

4.4. Classify ODEs by Order and Linearity (Lecture 10, Example 1)

Classify the following differential equations by order and determine whether each one is linear or nonlinear:

(a)

(b)

(c)

(d)

Click to see the solution

Key Concept: The order is determined by the highest derivative. Linearity fails whenever the unknown or its derivatives appear multiplied together, raised to powers other than 1, or inside nonlinear functions.

(1) .

  • Highest derivative: , so the equation is second order.
  • The derivative appears squared inside a square root, so the equation is nonlinear.

(2) .

  • Highest derivative: , so the equation is first order.
  • and appear only linearly, and the coefficients depend only on , so the equation is linear.

(3) .

  • Highest derivative: , so the equation is third order.
  • All appearances of and its derivatives are linear, so the equation is linear.

(4) .

  • Highest derivative: , so the equation is first order.
  • The term makes it nonlinear.

Answer: (1) second-order nonlinear, (2) first-order linear, (3) third-order linear, (4) first-order nonlinear.

4.5. Solve the Simplest Linear ODE and Interpret the Parameter (Lecture 10, Example 2)

Solve the initial value problem

and describe the behavior for , , and .

Click to see the solution

Key Concept: This is the basic exponential model. The sign of determines whether the solution grows, stays constant, or decays.

Separate variables:

Integrate:

Exponentiating gives

Use the initial condition:

so

Behavior:

  • If , then grows and the solution shows exponential growth.
  • If , then is constant.
  • If , then as , so the solution shows exponential decay.

This same structure appears in population growth, cooling, and radioactive decay models.

Answer: ; growth for , constant solution for , decay for .

4.6. Solve a Linear System by Eigenvalues and Eigenvectors (Lecture 10, Example 3)

Find the general solution of

Click to see the solution

Key Concept: For , trial solutions of the form reduce the problem to the eigenvalue problem .

Write the system in matrix form:

Compute the characteristic polynomial:

So

Hence the eigenvalues are

For :

which gives the relation , so one eigenvector is

For :

which gives , so one eigenvector is

Therefore the general solution is

In component form,

Answer: .

4.7. Solve the Same System by Diagonalization and Matrix Exponential (Lecture 10, Example 4)

For

use diagonalization to compute and write the solution for a general initial condition .

Click to see the solution

Key Concept: If , then . This gives the full initial-value solution directly.

From the previous example, we may choose

Compute the inverse:

Then

so

Therefore

Multiplying out gives

This is the same family of solutions as in Example 4.3, but now the constants are written explicitly in terms of the initial data.

Answer: with the formula above.

4.8. Compute the Matrix Exponential of a Diagonal Matrix (Lecture 10, Example 5)

Find for

Click to see the solution

Key Concept: Powers of a diagonal matrix are computed entrywise, so the matrix exponential is also diagonal with scalar exponentials on the diagonal.

First compute powers of :

Substitute into the series:

Each sum is an ordinary exponential:

More generally, if , then

Answer: .

4.9. Solve an Upper-Triangular System with an Initial Condition (Lecture 10, Example 6)

Solve

Click to see the solution

Key Concept: A triangular matrix reveals its eigenvalues immediately. Once the eigenvectors are found, the initial condition determines the constants in the eigenbasis expansion.

Let

Because is upper triangular, its eigenvalues are the diagonal entries:

For :

so . We may take

For :

so . We may take

Hence

Use the initial condition:

This gives

so

Therefore

Answer: .

4.10. Convert a Second-Order ODE to a First-Order System and Solve It (Lecture 10, Example 7)

Convert

to a first-order system and solve it.

Click to see the solution

Key Concept: Introduce new variables for successive derivatives. The resulting matrix system can then be solved using eigenvalues and eigenvectors.

Set

Then

So the first-order system is

In matrix form,

Let

Compute the characteristic polynomial:

Thus

so the eigenvalues are

For :

so and we may take

For :

so and we may take

Hence

Since , the original solution is

Answer: First-order system as above, and .

4.11. Convert a Fourth-Order ODE to a First-Order System (Lecture 10, Example 8)

Rewrite the fourth-order ODE

as a first-order system.

Click to see the solution

Key Concept: For an th-order ODE, each new variable stores one derivative of up to order .

Introduce the variables

Then

From the ODE,

so

Therefore,

In matrix form,

This system can then be analyzed by eigenvalues, diagonalization, or the matrix exponential.

Answer: The companion-form system is the one displayed above.

4.12. Use Eigenvalues to Classify Stability in Several Systems (Lecture 10, Example 9)

Determine the stability type of each system:

(a)

(b)

(c)

(d)

(e)

Click to see the solution

Key Concept: Stability depends on the real parts of the eigenvalues. Negative real parts give decay, positive real parts give growth, and purely imaginary eigenvalues lead to bounded oscillation in the simple case.

(1) .

This matrix is upper triangular, so the eigenvalues are

Both are negative, so the system is asymptotically stable.

(2) .

Its characteristic polynomial is

so the eigenvalues are

One eigenvalue is positive, so the system is unstable.

(3) .

The characteristic polynomial is

so

The real part is , so the system is asymptotically stable; geometrically it is a spiral sink.

(4) .

The characteristic equation is

so

The real part is zero, so the motion is oscillatory and bounded. This system is neutrally stable.

(5) .

The characteristic equation is

so

The real part is positive, so the solution grows like times an oscillation. The system is unstable.

Answer: (1) asymptotically stable, (2) unstable, (3) asymptotically stable, (4) neutrally stable, (5) unstable.

4.13. Use the Trace-Determinant Test for a System (Lecture 10, Example 10)

Consider

Explain why the conditions

guarantee asymptotic stability.

Click to see the solution

Key Concept: For a matrix, the sum and product of eigenvalues are the trace and determinant. If the trace is negative and the determinant is positive, both eigenvalues must have negative real parts.

The characteristic polynomial is

So if the eigenvalues are and , then

and

Assume

There are two cases:

Case 1: The eigenvalues are real.

If their product is positive, they have the same sign. Since their sum is negative, both must be negative.

Case 2: The eigenvalues are complex conjugates.

Then

and their sum is . Hence

So in either case, both eigenvalues have negative real parts. Therefore every mode decays exponentially and the system is asymptotically stable.

Answer: The conditions and force both eigenvalues to have negative real parts, so the system is asymptotically stable.